#include "qperson.h"

QPerson::QPerson(QObject *parent) : QObject(parent)
{

}

QPerson::QPerson(QString pName, QObject *parent): QObject(parent)
{
    m_name = pName;
}

unsigned int QPerson::age()
{
    return m_age;
}

void QPerson::setAge(unsigned int age)
{
    this->m_age = age;
    emit ageChanged(this->m_age);
}

void QPerson::incAge()
{
    this->m_age++;
    emit ageChanged(this->m_age);
}
